package com.ys.entity.business;

import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.util.Date;

@Table(name="TCC_Putaway", catalog="guid")
public class TccPutaway extends BaseEntity<TccPutaway> {
    @YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
    private String guid; // 主键ID
    @YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
    private Date updateTime; // 生效日期
    @YsField(nameDataBase="AssembleID", nameJava="assembleID", typeDataBase="varchar")
    private String assembleID; // 组装单号



    public String getGuid() {
        return guid;
    }
    public TccPutaway setGuid(String guid) {
        this.guid = guid;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public TccPutaway setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public String getAssembleID() {
        return assembleID;
    }
    public TccPutaway setAssembleID(String assembleID) {
        this.assembleID = assembleID;
        return this;
    }

    public static TccPutaway tccPutaway(
            String guid,
            Date updateTime,
            String assembleID
    ) {
        TccPutaway entity = new TccPutaway();
        entity.setGuid(guid);
        entity.setUpdateTime(updateTime);
        entity.setAssembleID(assembleID);
        return entity;
    }
}
